package com.example.restaurant.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author x
 * @since 2022-09-29
 */
@ApiModel(value = "Order对象", description = "订单表")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单号")
    private String orderNumber;

    @ApiModelProperty("关联门店ID")
    private Integer storeId;

    @ApiModelProperty("取单号")
    private String fetchNumber;

    @ApiModelProperty("订单总金额")
    private Long totalAmount;

    @ApiModelProperty("订单生成时间")
    private Date orderTime;

    @ApiModelProperty("订单所属桌号")
    private Integer deskId;

    @ApiModelProperty("折扣")
    private Double discount;

    @ApiModelProperty("订单状态 新订单new_order|已完成end_order |异常 exception_order ")
    private String orderStatus;

    @ApiModelProperty("用餐人数")
    private Integer peopleNumber;

    @ApiModelProperty("服务费")
    private Double servicePrice;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getFetchNumber() {
        return fetchNumber;
    }

    public void setFetchNumber(String fetchNumber) {
        this.fetchNumber = fetchNumber;
    }

    public Long getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Long totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getDeskId() {
        return deskId;
    }

    public void setDeskId(Integer deskId) {
        this.deskId = deskId;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getPeopleNumber() {
        return peopleNumber;
    }

    public void setPeopleNumber(Integer peopleNumber) {
        this.peopleNumber = peopleNumber;
    }

    public Double getServicePrice() {
        return servicePrice;
    }

    public void setServicePrice(Double servicePrice) {
        this.servicePrice = servicePrice;
    }

    @Override
    public String toString() {
        return "Order{" +
        "id = " + id +
        ", orderNumber = " + orderNumber +
        ", storeId = " + storeId +
        ", fetchNumber = " + fetchNumber +
        ", totalAmount = " + totalAmount +
        ", orderTime = " + orderTime +
        ", deskName = " + deskId +
        ", discount = " + discount +
        ", orderStatus = " + orderStatus +
        ", peopleNumber = " + peopleNumber +
        ", servicePrice = " + servicePrice +
        "}";
    }
}
